package com.qqtech.qquan.user.service;

import com.qqtech.core.frame.model.Result;
import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.user.model.*;

public interface UserAddressService extends BaseService<UserAddress> {
	
	/**
	 * 保存收货地址
	 * @param userAddress
	 * @return
	 */
	public int addUserAddress(UserAddress userAddress);
	
	/**
	 * 设置默认地址
	 * @param id
	 * @return
	 */
	public Result handleDefaultAddress(Integer id);
	
	/**
	 * 删除收货地址
	 * @param userAddress
	 * @return
	 */
	public int removeUserAddress(UserAddress userAddress);
}